#!/usr/bin/env python
# -*- coding: utf-8 -*-

li = [174, 321, 399, 92, 566, 153, 226, 816, 856, 136]
def insert_sort(li):
    for i in range(1,len(li)):#i表示摸的牌下标
        j = i - 1 #j表示手上牌的下标
        temp = li[i]
        while j >= 0 and li[j] > temp:
            li[j+1] = li[j]
            j -= 1
        li[j+1] = temp
        print(li)


insert_sort(li)